package com.ysstech.activiti.service;


import java.util.Map;

/**
 * 运行时Service，可以处理所有正在运行状态的流程实例，任务等
 */
public interface ActivitiRuntimeService {


    /**
     * 启动流程实例，让启动的流程实例关联业务
     */
    public void startProcessFlow(String userId, String key, String id) throws Exception;

    /**
     * 查询流程图
     *
     * @param taskId
     * @return
     * @throws Exception
     */
    public Map<String, Object> queryProcessFlowByTask(String taskId) throws Exception;
}
